package openbang.common.vo;


import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * 工作流程组
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class WorkFlowGroup implements IsSerializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private String code="";

	@Persistent
	private String name="";

	@Persistent
	private String type="";	

	@Persistent
	private String remark="";

	@Persistent
	private Integer status=StatusEnum.PENDING_VERIFY.getCode();

	@Persistent
	private Date regTime=new Date();

	
	@Persistent
	private Date updTime=new Date();
		
	@NotPersistent
	private List<WorkFlow> workFlowList = new ArrayList<WorkFlow>();

    public WorkFlowGroup() {
    }


	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
}